package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 事件记录对象 tb_event
 * 
 * @author ruoyi
 * @date 2025-07-16
 */
public class TbEvent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 事件ID */
    private Long eventId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private String equipNo;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String eventType;

    /** 记录开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventTimeBegin;

    /** 记录结束事件 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录结束事件", width = 30, dateFormat = "yyyy-MM-dd")
    private Date eventTimeEnd;

    /** 存储位置 */
    @Excel(name = "存储位置")
    private String eventUrl;

    /** 事件封面照片 */
    @Excel(name = "事件封面照片")
    private String eventPhoto;

    /** 事件描述 */
    @Excel(name = "事件描述")
    private String eventDesc;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setEventId(Long eventId) 
    {
        this.eventId = eventId;
    }

    public Long getEventId() 
    {
        return eventId;
    }

    public void setEquipNo(String equipNo) 
    {
        this.equipNo = equipNo;
    }

    public String getEquipNo() 
    {
        return equipNo;
    }

    public void setEventType(String eventType) 
    {
        this.eventType = eventType;
    }

    public String getEventType() 
    {
        return eventType;
    }

    public void setEventTimeBegin(Date eventTimeBegin) 
    {
        this.eventTimeBegin = eventTimeBegin;
    }

    public Date getEventTimeBegin() 
    {
        return eventTimeBegin;
    }

    public void setEventTimeEnd(Date eventTimeEnd) 
    {
        this.eventTimeEnd = eventTimeEnd;
    }

    public Date getEventTimeEnd() 
    {
        return eventTimeEnd;
    }

    public void setEventUrl(String eventUrl) 
    {
        this.eventUrl = eventUrl;
    }

    public String getEventUrl() 
    {
        return eventUrl;
    }

    public void setEventPhoto(String eventPhoto) 
    {
        this.eventPhoto = eventPhoto;
    }

    public String getEventPhoto() 
    {
        return eventPhoto;
    }

    public void setEventDesc(String eventDesc) 
    {
        this.eventDesc = eventDesc;
    }

    public String getEventDesc() 
    {
        return eventDesc;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eventId", getEventId())
            .append("equipNo", getEquipNo())
            .append("eventType", getEventType())
            .append("eventTimeBegin", getEventTimeBegin())
            .append("eventTimeEnd", getEventTimeEnd())
            .append("eventUrl", getEventUrl())
            .append("eventPhoto", getEventPhoto())
            .append("eventDesc", getEventDesc())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
